package com.example.art.chapter3.two.two_one

import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import com.example.art.R
import kotlinx.android.synthetic.main.activity_scroll_by.*

/**
 * Created by 舍长
 * describe:
 */
class ScrollByActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_scroll_by)
        tv.setOnClickListener {
            tv.scrollBy(100, 100)
        }
    }
}
